{if $SESSION.message|count_characters}
	<div class="message {$class} {$SESSION.message_class}">
		{$SESSION.message}
	</div>
	{if $SESSION.message_class == "ok"}
		<script type="text/javascript">
		{literal}
			setTimeout(function(){
				var msg = $(".message");
				msg.css("overflow", "hidden");
				msg.animate({
					marginLeft: msg.width(),
					width:0,
					height: msg.height(),
					opacity:0
				})
			}, 5000);
			
		{/literal}
		</script>
	{/if}
{/if}